import logging

def  common_assert(self,resp, sta, su, cod, mes):
    self.assertEqual(sta, resp.status_code)
    self.assertEqual(su, resp.json().get("success"))
    self.assertEqual(cod, resp.json().get("code"))
    self.assertIn(mes, resp.json().get("message"))
